package com.asj.house.controller;


import com.asj.house.returns.RespEntity;
import com.asj.house.service.HouseHitsService;
import com.asj.house.vo.AxisVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 房屋点击量表 前端控制器
 * </p>
 *
 * @author asj
 * @since 2021-03-16
 */
@RestController
@RequestMapping("/house-hits")
@Api(value = "房源点击量接口", tags = "房源点击量接口")
public class HouseHitsController {

    @Resource
    private HouseHitsService houseHitsService;

    @GetMapping("/count")
    @ApiOperation(value = "房源点击量统计")
    public RespEntity<AxisVO> integral() {
        RespEntity<AxisVO> respEntity = houseHitsService.houseHits();
        return respEntity;
    }

}
